{extend name="layout_modal" /}
{block name="css"}
<link rel="stylesheet" href="{$statics}plugins/select2/select2.css">
{/block}
{block name="script"}
<script src="{$statics}plugins/select2/select2.full.min.js"></script>
{/block}
{block name="content"}
<!-- Content Header (Page header) -->
<section class="content" style="padding-top:0px;">
<div class="row">
  <div class="box">
    <!-- /.box-header -->
    <!-- form start -->
    <form role="form" action="{:url('data_update')}">
      <div class="box-body">
        <div class="form-group">
          <label for="exampleInputEmail1">类型</label>
          <input type="radio" name="type" value="1" style="margin-left: 15px;" {if $info.type == 1}checked {/if}> {:config('LUNBO')[1]}
          <input type="radio" name="type" value="2" style="margin-left: 15px;" {if $info.type == 2}checked {/if}> {:config('LUNBO')[2]}
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">标题</label>
          <input type="text" class="form-control" placeholder="标题" name="title" value="{$info.title}">
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">简介</label>
          <input type="text" class="form-control" placeholder="简介" name="description" value="{$info.description}">
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">图片</label>
          <div class="input-group input-group-sm">
            <input type="text" class="form-control" name="thumb" id="thumb_text" value="{$info.thumb}">
            <span class="input-group-btn">
              <input id="thumb" class="upload_picker" type="file" btnTxt="上传图片">
            </span>
          </div>
          <div id="queue_thumb"></div>
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">链接地址</label>
          <input type="text" class="form-control" placeholder="链接地址" name="linkurl" value="{$info.linkurl}">
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">状态</label>
          <input type="radio" name="status" value="1" style="margin-left: 15px;" {if $info.status == 1}checked {/if}> 开启
          <input type="radio" name="status" value="99" style="margin-left: 15px;" {if $info.status == 99}checked {/if}> 关闭
        </div>
      </div>
      <!-- /.box-body -->
      <input type="hidden" value="{$info.id}" name="id">
    </form>
  </div>
</div>
</section>
<!-- /.content -->
{/block}